﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-2.5.3.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-1.9.1.js")" type="text/javascript"></script>
</head>

<body>
    <div class="head">
        <div id="logo">
            <a href="@Url.Action("Index", "Home")">
                <img src="@Url.Content("~/Content/img/logo/logo-v4.png")"/>
            </a>
        </div>
       
        <div class="short-menu">
            <div class="head-menu">
                <ul id="header-menu">
                    <li><a href="#">About us</a></li>
                    <li><a href="#">Site map</a></li>
                    <li><a href="#">Contact us</a></li>
                    <li><a href="#">Help</a></li>
                </ul>
            </div>
            @Html.Partial("_UserRef")
            <div class="search-form">
               <form class="border-input-button" method="get" action="@Url.Action("Search","Home")">
                   @if (Session["Key"] == null)
                    {
                        Session["Key"]="";
                    }
                    <input type="text" style="font-size:.8em;" placeholder="Enter keyword here" name="searchkey" value='@Session["Key"]'/>   
                    <input type="image" src="@Url.Content("~/Content/img/search-icon.png")" />
                       
                  </form>
            </div>
        </div>

    </div>
    <div class="banner-logo clear">
        <img src="@Url.Content("~/Content/img/banner_v2.jpg")" />
    </div>
    <div class="nav">
        <ul>
            <li><a href="#">Why Green?</a></li>
            @{    var acc = (XichLoGreen.Models.UserModel)Session["Account"];    }
            @if((acc != null && acc.Type == XichLoGreen.Models.UserType.NORMAL_USER) || (acc == null))
            {
                <li><a href="@Url.Action("Index", "GreenNews")">Green News</a></li>
            }
            else if (acc != null && acc.Type == XichLoGreen.Models.UserType.ADMIN)
            {
                <li><a href="@Url.Action("NewsManagement", "GreenNews")">Green News</a></li>
            }
            <li><a href="@Url.Action("Index", "GreenIdeas")">Green Ideas</a></li>
            <li><a href="#">Green Technology</a></li>
            <li><a href="#">Green Business</a></li>
            <li><a href="#">Green Research</a></li>
        </ul>
    </div>

    <div class="main-content clear">
        @RenderBody()
    </div>
    <div class="foo clear">
        <div class="left">
            <div class="follow">
                <ul id="footer-logos">
                    <li>Follow us on :</li>
                    <li><a href="#">
                        <img src="@Url.Content("~/Content/img/logo/facebook-icon.png")" /></a></li>
                    <li><a href="#">
                        <img src="@Url.Content("~/Content/img/logo/blogger-icon.png")" /></a></li>
                    <li><a href="#">
                        <img src="@Url.Content("~/Content/img/logo/google-plus-icon.png")" /></a></li>
                    <li><a href="#">
                        <img src="@Url.Content("~/Content/img/logo/youtube-icon.png")" /></a></li>
                    <li><a href="#">
                        <img src="@Url.Content("~/Content/img/logo/rss-icon.png")" /></a></li>
                    <li><a href="#">
                        <img src="@Url.Content("~/Content/img/logo/twitter-icon.png")" /></a></li>
                </ul>
            </div>
            <div class="foo-menu clear">
                <ul id="footer-menu">
                    <li><a href="#">Privacy</a></li>
                    <li><a href="#">About us</a></li>
                    <li><a href="#">Site map</a></li>
                    <li><a href="#">Contact us</a></li>
                    <li><a href="#">Help</a></li>
                </ul>
            </div>
        </div>
        <div class="right">
            <div class="copyright">
                <h4>Copyright (C) 2013 - XichLo Group (R)</h4>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</body>
</html>
